package com.example.demo.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 队列配置
 * @author Administrator
 *
 */
@Configuration
public class QueueConfig {
	@Bean
	public Queue loginQueue(){
		
		 return new Queue("topic.login");
	}
	
	@Bean
	public Queue registerQueue(){
				 return new Queue("topic.register");
	}
	
	@Bean
	public Queue forgetQueue(){
		
		 return new Queue("topic.forget");
	}
	@Bean
	public Queue forgetRandom(){
		return new Queue("topic.random");
	}
}
